import type { LoginItem, LoginParams } from '@/types/login'
import type { LoginResult } from '@/types/member'
import { request } from '@/utils/reuqest'

/**
 *小程序登录接口
 * @param data 请求参数
 * @returns
 */
export const postIoginWxMinAPI = (data: LoginParams) => {
  return request<LoginItem>('/login/wxMin', 'POST', data)
}

/**
 * 小程序登录内测
 * @param data 请求参数
 * @returns
 */
export const postIoginWxMinSimpleAPI = (data: string) => {
  return request<LoginResult>('/login/wxMin/simple', 'POST', { phoneNumber: data })
}
